import java.util.*;

/**
 * @author LKQ
 * @date 2022/3/31 14:38
 * @description 暴力超时
 */
public class Solution {
    public static void main(String[] args) {

    }
    public int[] sumEvenAfterQueries(int[] nums, int[][] queries) {
        int n = nums.length;
        int[] ans = new int[n];
        int start = 0;
        for(int[] qu: queries) {
            nums[qu[1]] += qu[0];
            int sum = 0;
            for(int i : nums) {
                if (i % 2 == 0) {
                    sum+= i;
                }
            }
            ans[start++] = sum;
        }
        return ans;
    }
}
